package com.xhsj.user.hr.system.mapper;

import com.xhsj.user.hr.process.processDefinition.query.MapQuery;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.hr.system.entity.TbHrZhaopinDemandApplyPosition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 招聘需求申请职位临时表 Mapper 接口
 * </p>
 *
 * @author 苏小林
 * @since 2021-03-16
 */
@Mapper
public interface TbHrZhaopinDemandApplyPositionMapper extends BaseMapper<TbHrZhaopinDemandApplyPosition> {

    boolean save(@Param("entity") TbHrZhaopinDemandApplyPosition entity);

    /**
     * 通过部门id查询职位
     * @author 苏小林
     * @date 2021/3/31 10:44
     * @param: deptId
     * @return: java.util.List<com.xhsj.user.hr.process.processDefinition.query.MapQuery>
     */
    List<MapQuery> getPositionByDept(@Param("deptId") Long deptId);
}
